-- GENERATED SPELL FOR [Venture Co. Mechanic] --


function spell0_1097(pUnit, Event) --@Multi-Shot,n/a--
pUnit:FullCastSpellOnTarget(14443,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1097', 585, 1)
end

function spell1_1097(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1097', 592, 1)
end

function Sorts_1097(pUnit, Event)
local choix_sorts_1097 = math.random(0, 1)
if choix_sorts_1097 == 0 then
pUnit:RegisterEvent('spell0_1097', 1, 1)
end
if choix_sorts_1097 == 1 then
pUnit:RegisterEvent('spell1_1097', 1, 1)
end
end

function mob1097_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1097', math.random(1500, 3000), 1)
end

function mob1097_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1097_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1097_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1097, 1, 'mob1097_Action')
RegisterUnitEvent(1097, 2, 'mob1097_Leave')
RegisterUnitEvent(1097, 3, 'mob1097_Kill')
RegisterUnitEvent(1097, 4, 'mob1097_Die')
